package com.papers.system.mapper;

import com.papers.common.core.mapper.BaseMapperPlus;
import com.papers.system.domain.TJuanDepartment;
import com.papers.system.domain.vo.TJuanCourseTreeVo;
import com.papers.system.domain.vo.TJuanDepartmentVo;
import com.papers.system.domain.vo.TJuanLeftTreeVo;
import com.papers.system.domain.vo.TJuanMajorTreeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 院系Mapper接口
 *
 * @author papers
 * @date 2022-10-08
 */
public interface TJuanDepartmentMapper extends BaseMapperPlus<TJuanDepartmentMapper, TJuanDepartment, TJuanDepartmentVo> {

    /**
     * 查询专业院系名称
     * @return
     */
    List<TJuanDepartmentVo> getDepartmentNameList();

    /**
     * 根据id查询院系树
     * @param departId
     * @return
     */
    List<TJuanLeftTreeVo> getDeptTreeList(@Param("id") String departId);

    /**
     * 查询院系树
     * @return
     */
    List<TJuanLeftTreeVo> getDepartTreeList();
    List<TJuanMajorTreeVo> getDepartTree();

    /**
     * 导入 院系
     * @param list
     */
    public void save(List<TJuanDepartmentVo> list);

    List<TJuanCourseTreeVo> getDepartCourseTree();

    List<String> selectCodeList();

    List<String> getDeptName(@Param("id") String departId);
}
